import request from '@/axios/request'

//2.1获取楼书列表信息
export function getBuildBookList(data) {
  return request({
    url: '/zhixuan/api/v1/brochure/json',
    method: 'post',
    data
  })
}
//2.2 获取楼书房源列表信息
export function getHousingList(data) {
  return request({
    url: '/zhixuan/api/v1/brochure/houseList/json',
    method: 'post',
    data
  })
}
//2.3创建楼书
export function createBrochure(data) {
  return request({
    url: '/zhixuan/api/v1/brochure/createBrochure',
    method: 'post',
    data
  })
}
//2.6 修改楼书名称
export function updateBrochure(data) {
  return request({
    url: '/zhixuan/api/v1/brochure/updateBrochure',
    method: 'post',
    data
  })
}
//2.7 删除楼书
export function deleteBrochur(data) {
  return request({
    url: '/zhixuan/api/v1/brochure/delBrochure',
    method: 'post',
    data
  })
}
//2.8 获取楼书概况
export function getBrochureTail(data) {
    return request({
      url: '/zhixuan/api/v1/brochure/viewBrochure',
      method: 'post',
      data
    })
  }
//2.9 获取联合办公列表
export function getCommunityList(data) {
  return request({
    url: '/zhixuan/api/v1/brochure/communityList/json',
    method: 'post',
    data
  })
}
// 2.10 获取楼书用户信息
export function getBrochureUserInfo(data) {
  return request({
    url: '/zhixuan/api/v1/brochure/brochureUserInfo',
    method: 'post',
    data
  })
}
//添加房源信息
export function editBrochurHuose(data) {
  return request({
    url: '/zhixuan/api/v1/build/editBrochurHuose',
    method: 'post',
    data
  })
}
//删除房源信息
export function deleteBrochurHuose(data) {
  return request({
    url: '/zhixuan/api/v1/build/deleteBrochurHuose',
    method: 'post',
    data
  })
}

